package triannon.client.settings;

import java.awt.RenderingHints;
import java.util.HashMap;

public class RenderSettings {
	private static RenderSettings instance = null;
	private HashMap<RenderingHints.Key, Object> qualityHints = new HashMap<RenderingHints.Key, Object>();

	private RenderSettings() {
		qualityHints.put(RenderingHints.KEY_ALPHA_INTERPOLATION,
				RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
		qualityHints.put(RenderingHints.KEY_ANTIALIASING,
				RenderingHints.VALUE_ANTIALIAS_ON);
		qualityHints.put(RenderingHints.KEY_INTERPOLATION,
				RenderingHints.VALUE_INTERPOLATION_BICUBIC);
		qualityHints.put(RenderingHints.KEY_RENDERING,
				RenderingHints.VALUE_RENDER_QUALITY);

	}

	public HashMap<RenderingHints.Key, Object> getQualityHints() {
		return qualityHints;
	}

	public static RenderSettings getInstance() {
		if (instance == null) {
			instance = new RenderSettings();
		}
		return instance;
	}

}
